﻿@model Dexter.Web.Mvc.ViewModel.Backoffice.ViewsData.AccountController.ChangePermissionViewData
@{
	ViewBag.Title = "ChangePermission";
	Layout = "~/Areas/Admin/Views/Shared/_BackOffice.cshtml";
}


<section class="grid_12">
	@if (!ViewData.ModelState.IsValid) {
		<ul class="message error no-margin">
			@Html.ValidationSummary()
		</ul>	
	}

	<div class="block-border">
		<form method="post" id="simple_form" class="block-content form" action="#">
			<h1>Create User</h1>

			@Html.AntiForgeryToken()

			<fieldset class="grey-bg">
				<legend>Roles</legend>
				<p>
					<label for="table-display" style="display:inline">Administrator</label>
					@Html.CheckBoxFor( x => x.Roles.IsAdministrator, new { @class = "mini-switch" } )
					&nbsp;
					<label for="table-display" style="display:inline">Moderator</label>
					@Html.CheckBoxFor( x => x.Roles.IsModerator, new { @class = "mini-switch" } )
					&nbsp;
					<label for="table-display" style="display:inline">Moderator</label>
					@Html.CheckBoxFor( x => x.Roles.IsPoster, new { @class = "mini-switch" } )
					&nbsp;
				</p>

			</fieldset>

			<p class="input-with-button">
				<button type="submit">Save</button>
			</p>
		
		</form>

	</div>

</section>

